add_executable(
        EyerColorSpace
        RenderThread.hpp
        RenderThread.cpp
        Main.cpp
        Scene.cpp
        Scene.hpp
        MagicNumber.hpp
        MagicNumber.cpp
        CIE_XYZ_COOR_EyerSpirit.cpp
        CIE_XYZ_COOR_EyerSpirit.hpp
        CIE_RGB_COOR_EyerSpirit.cpp
        CIE_RGB_COOR_EyerSpirit.hpp
        Label_EyerSpirit.cpp
        Label_EyerSpirit.hpp
        SphereSpirit.cpp
        SphereSpirit.hpp
        MVPCoorLineSpirit.cpp
        MVPCoorLineSpirit.hpp
        MVPNormalizePlaneSpirit.cpp
        MVPNormalizePlaneSpirit.hpp
        MVPLineSpirit.cpp
        MVPLineSpirit.hpp
		MVPCustomSpirit.cpp
		MVPCustomSpirit.hpp
)

include_directories (../)

target_link_libraries (EyerColorSpace EyerGLCustomComponent)
target_link_libraries (EyerColorSpace EyerGL)
target_link_libraries (EyerColorSpace EyerCore)
target_link_libraries (EyerColorSpace EyerThread)
target_link_libraries (EyerColorSpace EyerGLShader)
target_link_libraries (EyerColorSpace EyerMath)
target_link_libraries (EyerColorSpace EyerVideoEditor)
target_link_libraries (EyerColorSpace EyerImage)

target_link_libraries (EyerColorSpace z)
target_link_libraries (EyerColorSpace png)

file(COPY
        ${CMAKE_CURRENT_SOURCE_DIR}/index.html
        DESTINATION
        ${CMAKE_CURRENT_BINARY_DIR}/
        )

file(COPY
        ${CMAKE_CURRENT_SOURCE_DIR}/wasm-arrays.js
        DESTINATION
        ${CMAKE_CURRENT_BINARY_DIR}/
        )

file(COPY
        ${CMAKE_CURRENT_SOURCE_DIR}/image.png
        DESTINATION
        ${CMAKE_CURRENT_BINARY_DIR}/
        )
        
INSTALL(
        TARGETS EyerColorSpace
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
)